<%@page import="java.text.NumberFormat"%>
<%@page import="java.util.ArrayList"%>
<%@page import="model.Domain"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%
NumberFormat format = NumberFormat.getInstance();
Cache cache=null;
try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}
ArrayList<Domain> listDomain = null;
if(cache.containsKey("lastupdates"))
{
	listDomain = (ArrayList<Domain>) cache.get("lastupdates");
}
%>
<%
if(listDomain != null)
{
%>
<div class="ld">
		<strong>Recent site update</strong>
		<%
		for(int i=0;i<listDomain.size();i++)
		{
		%>
			<a href="/site/<%=listDomain.get(i).getName() %>" title="<%=listDomain.get(i).getName() %>"><%=listDomain.get(i).getName() %></a> , 
		<%
		}
		%>
</div>
<%
}
%>